package org.daidai.abstrusewriting;

import android.app.Application;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.EventBusBuilder;

/**
 * Created by vhly[FR].
 * <p>
 * Author: vhly[FR]
 * Email: vhly@163.com
 * Date: 16/10/10
 */

/**
 * 全局初始化部分
 */
public class MainApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // 1. 初始化EventBus对象实例
//        EventBus.getDefault();

        // 1.2 自定义初始化EventBus
        EventBusBuilder builder = EventBus.builder();
        builder.installDefaultEventBus();

    }
}
